//
//  VBCharacter.h
//  VicBattle
//
//  Created by Nguyen Nguyen on 5/5/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "cocos2d.h"

@class VBBattleLayer;

typedef enum { Idle, Walk, Attack, Dead } VBState;

typedef struct {
    int row, col;
} VBCell;

@interface VBCharacter : NSObject
{
    int atk, def, hp, mp, cost;
    bool isHero;
    VBState state;
    VBCell cell;
    CCSprite *body;
    VBBattleLayer *battle;
    CCProgressTimer * hpBar;
    int life;
}

@property int atk, def, hp, mp, cost;
@property bool isHero;
@property VBState state;
@property VBCell cell;
@property(assign) CCSprite *body;
@property (nonatomic, retain) CCProgressTimer * hpBar;
@property int life;

-(id) initWithWorld:(VBBattleLayer *) world;
-(void) setCellWithRow:(int) row andCol:(int) col;
-(int) getEnemy;
-(void) attack;
-(void) skill;

@end
